import {
  FaCamera,
  FaImages,
  FaLocationArrow,
  FaMoneyBillWave,
  FaGift,
  FaPhoneAlt,
} from "react-icons/fa";
import { IoMdCall } from "react-icons/io";

export default function PlusCard() {
  const actions = [
    {
      icon: <FaImages className="text-2xl" />,
      label: "相册",
      color: "text-blue-500",
    },
    {
      icon: <FaCamera className="text-2xl" />,
      label: "拍摄",
      color: "text-blue-500",
    },
    {
      icon: <IoMdCall className="text-2xl" />,
      label: "语音通话",
      color: "text-blue-500",
    },
    {
      icon: <FaLocationArrow className="text-2xl" />,
      label: "位置",
      color: "text-blue-500",
    },
    {
      icon: <FaMoneyBillWave className="text-2xl" />,
      label: "红包",
      color: "text-red-500",
    },
    {
      icon: <FaGift className="text-2xl" />,
      label: "礼物",
      color: "text-yellow-500",
    },
    {
      icon: <FaMoneyBillWave className="text-2xl" />,
      label: "转账",
      color: "text-green-500",
    },
    {
      icon: <FaPhoneAlt className="text-2xl" />,
      label: "语音输入",
      color: "text-blue-500",
    },
  ];

  return (
    <div className="p-4 bg-white">
      <div className="grid grid-cols-4 gap-4">
        {actions.map((action, index) => (
          <button key={index} className="flex flex-col items-center p-2">
            <div
              className={`w-12 h-12 flex items-center justify-center rounded-xl bg-gray-200 ${action.color}`}
            >
              {action.icon}
            </div>
            <span className="text-xs mt-1 text-gray-600">{action.label}</span>
          </button>
        ))}
      </div>
      <div className="flex justify-center mt-4">
        <div className="flex space-x-1">
          <button className="btn btn-sm btn-ghost">收藏</button>
          <button className="btn btn-sm btn-ghost">文件</button>
          <button className="btn btn-sm btn-ghost">卡包</button>
        </div>
      </div>
    </div>
  );
}
